import express from 'express';

import {
    getAdmin,
    addAdmin,
    removeAdmin,
    adminSignin,
    updateAdmin,
    getUsers,
    markFBResolved,
    getDailySearch,
    getDailyBrowse
} from '../controller/adminPennel.js';

import {
    getFeedback
} from '../controller/usersPannel.js';

var router = express.Router();

router.get('/', getAdmin);

router.post('/addadmin', addAdmin);

router.post('/removeadmin', removeAdmin);

router.post('/updateadmin', updateAdmin);

router.post('/signin', adminSignin);

router.get('/feedback', getFeedback);

router.post('/markresolved', markFBResolved);

router.get('/getusers', getUsers);

router.get('/getdailysearch', getDailySearch);

router.get('/getdailybrowse', getDailyBrowse);

export default router;